<script setup>
  import {
    onLaunch,
    onShow,
    onHide
  } from '@dcloudio/uni-app'

  import userstore from './store/userinfo';
  const {
    queryUser
  } = userstore();

  onLaunch(() => {
    console.log('应用启动')
    queryUser((isLogin) => {
      console.log('是否登录：', isLogin);
    });
  })

  onShow(() => {
    console.log('应用显示')
  })

  onHide(() => {
    console.log('应用隐藏')
  })
</script>

<style>
  /*每个页面公共css */
</style>